<?php

namespace mpend\modules\activity\models;

use Yii;
use common\helpers\Url;
use common\logics\PositionLogic;

/**
 * 新品面板
 *
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class NewDashboardLogic extends \common\logics\DashboardLogic {

    /**
     * @var string 新品标题
     */
    public $title = '最近上新';

    /**
     * @var array 新品轮播图
     */
    public $broadcast = [];

    /**
     * 精选活动轮播图
     * @inheritdoc
     */
    protected function setBroadcast() {
        return PositionLogic::findByName('activity.new.broadcast', []);
    }

}
